package utils;

public class MonthUtil {
    public static String tran(String month){
        month = month.substring(0, month.length() - 1);
        if ("一".equals(month)){
            return "01";
        }else if("二".equals(month)){
            return "02";
        }else if("三".equals(month)){
            return "03";
        }else if("四".equals(month)){
            return "04";
        }else if("五".equals(month)){
            return "05";
        }else if("六".equals(month)){
            return "06";
        }else if("七".equals(month)){
            return "07";
        }else if("八".equals(month)){
            return "08";
        }else if("九".equals(month)){
            return "09";
        }else if("十".equals(month)){
            return "10";
        }else if("十一".equals(month)){
            return "11";
        }else if("十二".equals(month)){
            return "12";
        }
        return "0";
    }

}
